#pragma once
#include <iostream>
using namespace std;
class MyString
{
public:
	MyString();
	MyString(const char* p);
	MyString(const MyString& s);
	~MyString();
public:
	MyString& operator= (const char *p);
	MyString& operator= (const MyString &p);
	char& operator[] (int index);
public:
	bool operator== (const char *p);
	bool operator== (const MyString &p);
	bool operator!= (const char *p);
	bool operator!= (const MyString &p);
public:
	int operator< (const char *p);
	int operator> (const char *p);
	int operator< (const MyString& s);
	int operator> (const MyString& s);
private:
	friend ostream& operator<<(ostream& out, MyString &s);
	int m_len;
	char *m_p;
};

